package 面向对象.课堂练习.编程题;

import java.util.Comparator;

/**
 * @author IT_Jay
 * @date 2022/1/9 10:03 AM
 */
public class MyComparator implements Comparator<Seaweed> {
    public int compare(Seaweed o1,Seaweed o2){
        return o1.getName().compareTo(o2.getName());
    }
}
